dy-lib=libmymath.so
$(dy-lib):add.o div.o mul.o sub.o
	gcc -shared -o $@ $^
#Test:add.o div.o mul.o sub.o test.o
#	gcc -o $@ $^
%.o:%.c
	gcc -fPIC -c  $<
.PHONY:output
output:
	mkdir -p mymath_lib/include
	mkdir -p mymath_lib/lib
	cp -f *.h mymath_lib/include
	cp -f *.so mymath_lib/lib
.PHONY:clean
clean:
	rm -rf *.o *.so mymath_lib
